package com.syaccp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_inspiration")
@ApiModel(value="Inspiration对象", description="灵感列表")
public class Inspiration {


    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private int id;

    private String title;

    private String image;

    private String author;

    @TableField("author_img")
    private String authorImg;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date time;



    private String details;

    @TableField("del_flag")
    private Integer delFlag;

    @TableField("create_by")
    private Integer createBy;

    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date  createTime;

    @TableField("update_by")
    private Integer updateBy;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @TableField("update_time")
    private Date updateTime;

    private String remark;






}
